﻿<Window x:Class="WPFMetronom.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Title="MainWindow" Height="536" Width="731" ResizeMode="NoResize" Background="{DynamicResource WindowBackgroundBrush}">
	<Grid Height="508">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="228*" />
			<ColumnDefinition Width="58*" />
			<ColumnDefinition Width="423*" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="102*" />
			<RowDefinition Height="299*" />
		</Grid.RowDefinitions>
		<Slider Height="34" Margin="0,51,94,0" Name="sliderCountdown" VerticalAlignment="Top" Ticks="8, 16, 32, 64" Maximum="64" TickPlacement="BottomRight" Value="5" Minimum="0" BorderBrush="White" Foreground="Red" ValueChanged="sliderCountdown_ValueChanged" SmallChange="1" IsSnapToTickEnabled="False" IsEnabled="False" HorizontalAlignment="Right" Width="493" Grid.ColumnSpan="3" />
		<Label Content="5" Height="34" Margin="335,51,0,0" Name="labelCountdownUpper" VerticalAlignment="Top" HorizontalAlignment="Left" Width="30" IsEnabled="False" Grid.Column="2" HorizontalContentAlignment="Right" />
		<Slider Height="34" HorizontalAlignment="Right" IsSnapToTickEnabled="False" Margin="0,0,94,343" Maximum="300" Minimum="1" Name="sliderSpeedSimple" TickPlacement="BottomRight" Ticks="20,40,60,90,120,150,200,250,300" Value="140" VerticalAlignment="Bottom" Width="493" Foreground="Red" ValueChanged="sliderSpeedSimple_ValueChanged" Grid.ColumnSpan="3" Grid.RowSpan="2" />
		<Label Content="140" Height="34" HorizontalAlignment="Left" Margin="335,121,0,0" Name="labelSpeedSimpleUpper" VerticalAlignment="Top" Width="30" Grid.Column="2" Grid.RowSpan="2" HorizontalContentAlignment="Right" />
		<Label Content="Скорость" FontSize="10" FontWeight="Bold" Height="34" HorizontalAlignment="Left" Margin="12,121,0,0" Name="labelSpeedSimple" VerticalAlignment="Top" Width="104" Grid.RowSpan="2" />
		<Slider Height="34" IsSnapToTickEnabled="False" Margin="0,59,94,0" Maximum="900" Minimum="0" Name="sliderSimpleTimer" TickPlacement="BottomRight" Ticks="10,30,60,120,300,600,900" Value="10" VerticalAlignment="Top" Grid.Row="1" Foreground="Red" ValueChanged="sliderSimpleTimer_ValueChanged" IsEnabled="False" Grid.ColumnSpan="3" HorizontalAlignment="Right" Width="493" />
		<Label Content="10" Height="34" HorizontalAlignment="Left" Margin="335,59,0,0" Name="labelSimpleTimerUpper" VerticalAlignment="Top" Width="30" Grid.Row="1" IsEnabled="True" Grid.Column="2" HorizontalContentAlignment="Right" />
		<RadioButton Content="Расширенный" Height="23
                     " HorizontalAlignment="Left" Margin="8,99,0,0" Name="radioButtonExtended" VerticalAlignment="Top" Width="109" FontWeight="Bold" Grid.Row="1" Checked="radioButtonExtended_Checked" Grid.Column="2" GroupName="" IsChecked="False" />
		<RadioButton Content="Простой" Height="23" HorizontalAlignment="Left" Margin="8,91,0,0" Name="radioButtonSimple" VerticalAlignment="Top" Width="109" FontWeight="Bold" IsChecked="False" Checked="radioButtonSimple_Checked" Grid.Column="2" GroupName="" />
		<Slider Height="34" HorizontalAlignment="Right" IsSnapToTickEnabled="False" Margin="0,128,94,0" Maximum="300" Minimum="0" Name="sliderSpeedExtendStart" TickPlacement="BottomRight" Ticks="20,40,60,90,120,150,200,250,300" Value="100" VerticalAlignment="Top" Width="493" Grid.Row="1" Foreground="Red" IsEnabled="False" ValueChanged="sliderSpeedExtendStart_ValueChanged" Grid.ColumnSpan="3" />
		<Label Content="100" Height="34" HorizontalAlignment="Left" Margin="335,0,0,211" Name="labelSpeedExtendStartUpper" VerticalAlignment="Bottom" Width="30" Grid.Row="1" IsEnabled="False" Grid.Column="2" HorizontalContentAlignment="Right" />
		<Label Content="Старт" FontSize="10" FontWeight="Bold" Height="34" HorizontalAlignment="Left" Margin="12,128,0,0" Name="labelSpeedExtendStart" VerticalAlignment="Top" Width="104" Grid.Row="1" IsEnabled="False" />
		<Slider Height="34" HorizontalAlignment="Right" IsSnapToTickEnabled="False" Margin="0,168,94,0" Maximum="300" Minimum="0" Name="sliderSpeedExtendFinish" TickPlacement="BottomRight" Ticks="20,40,60,90,120,150,200,250,300" Value="140" VerticalAlignment="Top" Width="493" Grid.Row="1" Foreground="Red" IsEnabled="False" ValueChanged="sliderSpeedExtendFinish_ValueChanged" Grid.ColumnSpan="3" />
		<Label Content="140" HorizontalAlignment="Left" Margin="335,0,0,171" Name="labelSpeedExtendFinishUpper" Width="30" Grid.Row="1" IsEnabled="False" Grid.Column="2" Height="34" VerticalAlignment="Bottom" HorizontalContentAlignment="Right" />
		<Label Content="Финиш" FontSize="10" FontWeight="Bold" Height="34" HorizontalAlignment="Left" Margin="12,168,0,0" Name="labelSpeedExtendFinish" VerticalAlignment="Top" Width="104" Grid.Row="1" IsEnabled="False" />
		<Slider Height="34" HorizontalAlignment="Right" IsSnapToTickEnabled="False" Margin="0,208,94,0" Maximum="30" Minimum="0" Name="sliderStepPart" TickPlacement="BottomRight" Ticks="2,4,8,16,32" Value="10" VerticalAlignment="Top" Width="493" Grid.Row="1" Foreground="Red" IsEnabled="False" ValueChanged="sliderStepPart_ValueChanged" Grid.ColumnSpan="3" />
		<Label Content="10" Height="34" HorizontalAlignment="Left" Margin="335,0,0,131" Name="labelStepPartUpper" VerticalAlignment="Bottom" Width="30" Grid.Row="1" IsEnabled="False" Grid.Column="2" HorizontalContentAlignment="Right" />
		<Slider Height="34" IsSnapToTickEnabled="False" Margin="0,249,94,0" Maximum="300" Minimum="0" Name="sliderTimeHit" TickPlacement="BottomRight" Ticks="20,40,60,90,120,150,200,250,300" Value="10" VerticalAlignment="Top" Grid.Row="1" Foreground="Red" IsEnabled="False" ValueChanged="sliderTimeHit_ValueChanged" HorizontalAlignment="Right" Width="493" Grid.ColumnSpan="3" />
		<Label Content="10" Height="34" HorizontalAlignment="Left" Margin="335,248,0,0" Name="labelTimeHitUpper" VerticalAlignment="Top" Width="30" Grid.Row="1" IsEnabled="False" Grid.Column="2" HorizontalContentAlignment="Right" />
		<Slider Height="34" HorizontalAlignment="Right" IsSnapToTickEnabled="False" Margin="0,292,94,0" Maximum="16" Minimum="0" Name="sliderRepeatLoop" TickPlacement="BottomRight" Ticks="2,4,8,16" Value="4" VerticalAlignment="Top" Width="493" Grid.Row="1" LargeChange="1" Foreground="Red" IsEnabled="False" ValueChanged="sliderRepeatLoop_ValueChanged" Grid.ColumnSpan="3" />
		<Label Content="4" Height="34" HorizontalAlignment="Left" Margin="335,292,0,0" Name="labelRepeatLoopUpper" VerticalAlignment="Top" Width="30" Grid.Row="1" IsEnabled="False" Grid.Column="2" HorizontalContentAlignment="Right" />
		<CheckBox Content="Обратный отсчет" Height="34" HorizontalAlignment="Left" Margin="12,51,0,0" Name="checkBoxCountdown" VerticalAlignment="Top" Width="104" FontSize="10" FontWeight="Bold" Checked="checkBoxCountdown_Checked" Unchecked="checkBoxCountdown_Unchecked" />
		<Label Content="8" Height="28" HorizontalAlignment="Left" Margin="201,73,0,0" Name="label2" VerticalAlignment="Top" FontSize="10" />
		<Label Content="16" FontSize="10" Height="28" HorizontalAlignment="Left" Margin="25,73,0,0" Name="label17" VerticalAlignment="Top" Grid.Column="1" />
		<Label Content="32" FontSize="10" Height="28" HorizontalAlignment="Left" Margin="86,73,0,0" Name="label18" VerticalAlignment="Top" Grid.Column="2" />
		<Button Content="Старт" Grid.Row="1" Height="29" HorizontalAlignment="Left" Margin="215,332,0,0" Name="buttonStart" VerticalAlignment="Top" Width="285" Click="buttonStart_Click" Grid.ColumnSpan="3" />
		<CheckBox Content="Время" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="12,58,0,0" Name="checkBoxSimpleTime" VerticalAlignment="Top" Width="104" FontSize="10" FontWeight="Bold" Checked="checkBoxSimpleTime_Checked" Unchecked="checkBoxSimpleTime_Unchecked" />
		<Button Content="Шаг" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="12,207,0,0" Name="buttonStepPart" VerticalAlignment="Top" Width="75" FontSize="10" FontWeight="Bold" IsEnabled="False" Click="buttonStepPart_Click" />
		<Button Content="Время" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="12,249,0,0" Name="buttonTimeHit" VerticalAlignment="Top" Width="75" FontWeight="Bold" FontSize="10" IsEnabled="False" Click="buttonTimeHit_Click" />
		<CheckBox Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="93,291,0,0" Name="checkBoxRepeatLoop" VerticalAlignment="Top" IsChecked="False" IsEnabled="False" Checked="checkBoxRepeatLoop_Checked" Unchecked="checkBoxRepeatLoop_Unchecked" />
		<Button Content="Повторить" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="12,291,0,0" Name="buttonRepeatLoop" VerticalAlignment="Top" Width="75" FontWeight="Bold" FontSize="10" IsEnabled="False" Click="buttonRepeatLoop_Click" />
		<Menu Margin="0,0,43,105" IsMainMenu="True" IsEnabled="True" Grid.ColumnSpan="2">
			<MenuItem Header="_Presets">
				<MenuItem Header="_Load..." Click="MenuLoad_Click"/>
				<Separator />
				<MenuItem Header="_Save" Click="MenuSave_Click"/>
				<MenuItem Header="_Save As..." Click="MenuSaveAs_Click"/>
				<Separator />
				<MenuItem Header="_Exit" Click="MenuExit_Click"/>
			</MenuItem>
			<MenuItem Header="_Styles" x:Name="StylesDropdown" Click="ClickOnStyle">
				<MenuItem Header="BureauBlack" IsCheckable="True"></MenuItem>
				<MenuItem Header="BureauBlue" IsCheckable="True"></MenuItem>
				<MenuItem Header="ExpressionDark" IsCheckable="True"></MenuItem>
				<MenuItem Header="ExpressionLight" IsCheckable="True"></MenuItem>
				<MenuItem Header="ShinyBlue" IsCheckable="True"></MenuItem>
				<MenuItem Header="ShinyRed" IsCheckable="True"></MenuItem>
				<MenuItem Header="WhistlerBlue" IsCheckable="True"></MenuItem>
			</MenuItem>
			<MenuItem Header="_Help">
				<MenuItem Header="_About" Click="MenuHelp_Click"></MenuItem>
				<MenuItem Header="_Language" x:Name="LanguagesDropdown" Click="ChangeLanguageClick">
					<MenuItem Header="Rus" IsCheckable="True"></MenuItem>
					<MenuItem Header="Eng" IsCheckable="True"></MenuItem>
				</MenuItem>
			</MenuItem>
		</Menu>
	</Grid>
</Window>
